#ifndef VXCROSSHAIR_H
#define VXCROSSHAIR_H

#include <QtGui>
#include "vxgraphicsview.h"



class VxCrosshair : public QWidget
{

	Q_OBJECT

public:

	enum Options{
		HEIGHT		= 13,
		CHEIGHT		= 11,
	};

	VxCrosshair(QWidget * parent=0);
	~VxCrosshair();

	void paintEvent(QPaintEvent *event);
	bool eventFilter(QObject *, QEvent *);
	void exclude(QWidget * widget);

private:
	QPoint * _mpoint;
	QList<QWidget *> * _excludes;

	bool _validateXY(QPoint * p);
	QWidget * _hline;
	QWidget * _vline;
	QWidget * _hbline;
	QWidget * _vbline;

};


#endif // VXCROSSHAIR_H
